package main

import (


	"gcc/global"
	peopledetectservice "gcc/peopleDetectService"
	"log"

	"github.com/gin-gonic/gin"
)



func main(){
	pd := gin.Default()
	err := peopledetectservice.Start(pd)
	if err != nil {
		log.Printf("start people detect service failed, detail information err : %s \n", err.Error())
	}
	log.Println(pd.Run(string(global.PeopleDetectAddress)))
	log.Printf("some reason lead the service shutdown")
	err = peopledetectservice.Shutdown(peopledetectservice.Reg)
	if err != nil {
		log.Printf("after shutdown the service, tell the registry failed, err: %s \n", err.Error())
	}

}



